]> git.r.bdr.sh - rbdr/map/blame_incremental - Map/Core Extensions/Date+format.swift
Update to support notes + new style
[rbdr/map] / Map / Core Extensions / Date+format.swift
... / ...
CommitLineData
1//
2// Date+format.swift
3// Map
4//
5// Created by Ruben Beltran del Rio on 2/1/21.
6//
7
8import Foundation
9
10extension Date {
11 func format() -> String {
12 let formatter = DateFormatter()
13 formatter.dateStyle = .short
14 formatter.timeStyle = .medium
15 return formatter.string(from: self)
16 }
17}